package 观察者模式;

public abstract class Subject {
    abstract  void  Attach(Observer observer);
    abstract void Detach(Observer observer);
    abstract void Notify();
    private String SubjectState;

    public String getSubjectState() {
        return SubjectState;
    }

    public void setSubjectState(String subjectState) {
        SubjectState = subjectState;
    }
}
